package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 充电信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_charge")
public class CarParkCharge extends Model<CarParkCharge> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "p_id", type = IdType.ASSIGN_ID)
    private String pId;
    /**
     * 快充总数量
     */
    @TableField("fast_charge_num")
    private Integer fastChargeNum;
    /**
     * 快充已使用数量
     */
    @TableField("fast_charge_use")
    private Integer fastChargeUse;
    /**
     * 慢充总数量
     */
    @TableField("slow_charge_num")
    private Integer slowChargeNum;
    /**
     * 慢充已使用数量
     */
    @TableField("slow_charge_use")
    private Integer slowChargeUse;
    /**
     * 免费停车
     */
    @TableField("free_park")
    private String freePark;
    /**
     * 24小时
     */
    @TableField("all_day")
    private String allDay;
    /**
     * 充电品牌,0-蔚来，1-国网，2-特来电
     */
    @TableField("charge_brand")
    private Integer chargeBrand;
    /**
     * 场站ID
     */
    @TableField("station_id")
    private String stationId;

    public void freeData() {
        this.pId = null;
        this.fastChargeNum = null;
        this.fastChargeUse = null;
        this.slowChargeNum = null;
        this.slowChargeUse = null;
        this.freePark = null;
        this.allDay = null;
        this.chargeBrand = null;
        this.stationId = null;
    }

}
